package com.university.mentalhealthplatform.studentV3.dto;


public class TestDTOV3 {

    private Integer id;               // 题目的唯一标识
    private String topic;             // 题目内容
    private Boolean always;           // 选项：总是
    private Boolean often;            // 选项：经常
    private Boolean sometimes;        // 选项：有时候
    private Boolean hardly;           // 选项：很少
    private Boolean none;             // 选项：从不
    private int totalScore;                // 根据选项计算的分数

    // 包含一个字符串方法，用于帮助显示所有选项的状态
    public String getOptionsSummary() {
        StringBuilder summary = new StringBuilder("选项：");
        if (Boolean.TRUE.equals(always)) {
            summary.append("总是 ");
        }
        if (Boolean.TRUE.equals(often)) {
            summary.append("经常 ");
        }
        if (Boolean.TRUE.equals(sometimes)) {
            summary.append("有时候 ");
        }
        if (Boolean.TRUE.equals(hardly)) {
            summary.append("很少 ");
        }
        if (Boolean.TRUE.equals(none)) {
            summary.append("从不 ");
        }
        return summary.toString();
    }

    // Getter 和 Setter 方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public Boolean getAlways() {
        return always;
    }

    public void setAlways(Boolean always) {
        this.always = always;
    }

    public Boolean getOften() {
        return often;
    }

    public void setOften(Boolean often) {
        this.often = often;
    }

    public Boolean getSometimes() {
        return sometimes;
    }

    public void setSometimes(Boolean sometimes) {
        this.sometimes = sometimes;
    }

    public Boolean getHardly() {
        return hardly;
    }

    public void setHardly(Boolean hardly) {
        this.hardly = hardly;
    }

    public Boolean getNone() {
        return none;
    }

    public void setNone(Boolean none) {
        this.none = none;
    }

    public int getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(int totalScore) {
        this.totalScore = totalScore;
    }
}
